package com.trafficsys.modules.owner.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.trafficsys.modules.entity.Ticket;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface TicketRecordDao extends BaseMapper<Ticket> {
    @Select("select * from ticket where car_no=#{carNo}")
    List<Ticket> queryTicketByCarNo(String carNo);
}
